#pragma once
#include "gm_handle.h"
#include <middleware/mk_lib/mk_node_list.h>
#include <middleware/gm_api/skfapi.h>
class gm_handle_mgr
{
public:
	gm_handle_mgr(void);
	~gm_handle_mgr(void);

	void clear();

	HANDLE get_handle() { return this;}

	int add_handle(HANDLE data);

	ULONG remove_handle(HANDLE data);

	gm_handle* get_first_handle();

	gm_handle* get_next_handle();

private:
	mk_node_list _sc_handle_list;
	mk_node *_curr_pos;
};
